﻿using System.ComponentModel.DataAnnotations;
using Orchard.ContentManagement;

namespace Dyn.News.Models {
    public class RecentArticlesPart : ContentPart<RecentArticlesPartRecord> {

        public string ForArticle {
            get { return Record.ArticleSlug; }
            set { Record.ArticleSlug = value; }
        }

        [Required]
        public int Count {
            get { return Record.Count; }
            set { Record.Count = value; }
        }
    }
}
